﻿using Abp.Application.Services.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Order.Orders.Dto
{
    public class OrderEvaluateDto: EntityDto
    {
        public string OrderNumber { get; set; }
        public int TargetId { get; set; }
        public long UserId { get; set; }
        public string UserName { get; set; }
        public string UserType { get; set; }
        public int? ParentCommentId { get; set; }
        public string Content { get; set; }
        public List<string> Pictures { get; set; }
        public DateTime CreationTime { get; set; }
        public double RateValue { get; set; }

        public OrderEvaluateDto(OrderEvaluate orderEvaluate)
        {
            OrderNumber = orderEvaluate.OrderNumber;
            TargetId = orderEvaluate.TargetId;
            UserId = orderEvaluate.UserId;
            UserName = orderEvaluate.UserName;
            UserType = orderEvaluate.UserType;
            ParentCommentId = orderEvaluate.ParentCommentId;
            Content = orderEvaluate.Content;
            Pictures = orderEvaluate.Pictures.Items;
            CreationTime = orderEvaluate.CreationTime;
            RateValue = orderEvaluate.RateValue;
        }
    }
}
